package com.ftg.learn.entity;

import lombok.Data;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "sys_role")
public class SysRoleEntity {
    @Id
    private int id;
    @Field(name = "roleName", type = FieldType.Text,analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String roleName;
    @Field(name = "roleCode", type = FieldType.Text)
    private String roleCode;
    @Field(name = "createTime", type = FieldType.Text)
    private String createTime;
    @Field(name = "updateTime", type = FieldType.Text)
    private String updateTime;
}
